package exception;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2025-06-16
 * Time: 10:25
 */

/*自定义一个异常类*/
public class StringException extends IOException {
    private int length;
    public StringException(int length){
        this.length = length;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }
}
